package mediator.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/28
 * @Modified By:
 */
public class Sale extends AbstarctColleague {
    public Sale(AbstarctMediator abstarctMediator) {
        super(abstarctMediator);
    }

    public void sellIBMComputer(int number) {
        abstarctMediator.execute("sale.sell", number);
        System.out.println("sellIBMComputer:" + number);
    }

    public int getSaleStatus() {
        return 5;
    }

    public void offSale() {
        abstarctMediator.execute("sale.offsell");
    }
}
